<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFourAdminUserTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('four_admin_user', function (Blueprint $table) {
            $table->increments('id');
            $table->string('username')->default('')->comment('用户名');
            $table->char('password')->comment('密码');
            $table->string('account')->default('')->comment('账号');
            $table->char('phone')->comment('手机号');
            $table->integer('role_id')->comment('角色id');
            $table->tinyInteger('status')->comment('是否启用，0：未启用，1：启用');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('four_admin_user');
    }
}
